<?php
return [
    'name' => 'FUSEN',
    'charset' => 'utf-8',
    'language' => 'zh-CN',
    'timeZone' => 'America/Los_Angeles',
    'aliases' => [
        '@bower' => '@vendor/bower-asset',
        '@npm'   => '@vendor/npm-asset',
    ],
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'components' => [
        'cache' => [
            'class' => 'yii\caching\FileCache',
        ],
        'mailer' => [
            'class' => '\yii\swiftmailer\Mailer',
            'viewPath' => '@app/mailer',
            'useFileTransport' => false, 
            'transport' => [
                'class' => 'Swift_SmtpTransport',
                'host' => 'smtp.qq.com', 
                'username' => '1418197673@qq.com', 
                'password' => 'uccghvvqsclricbj', 
                'port' => '465',
                'encryption' => 'ssl', 
            ],
            'messageConfig' => [
                'charset' => 'UTF-8',
                'from' => ['1418197673@qq.com' => 'xiongzai']
            ],
        ],
        'formatter' => [
            'dateFormat' => 'yyyy-MM-dd',
            'timeFormat' => 'HH:mm:ss',
            'datetimeFormat' => 'yyyy-MM-dd HH:mm:ss'
        ],
        'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'enableStrictParsing' => false,
            "rules"               => [
                "<controller:\w+>/<id:\d+>"     => "<controller>/view",
                "<controller:\w+>/<action:\w+>" => "<controller>/<action>",
            ],
        ],
    ],
];
